﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Model.EntityModel.Auth
{
    // 用户-组关联表（新增）
    [SugarTable("USER_GROUP")]
    public class UserGroup
    {
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true, Length = 36)]
        public string Id { get; set; } = Guid.NewGuid().ToString();

        [SugarColumn(ColumnName = "USER_ID", Length = 36)]
        public string UserId { get; set; }

        [SugarColumn(ColumnName = "GROUP_ID", Length = 36)]
        public string GroupId { get; set; }

        [SugarColumn(ColumnName = "IS_ACTIVE", Length = 1)]
        public string IsActive { get; set; } = "Y";

        [SugarColumn(ColumnName = "CREATED_AT")]
        public DateTime CreatedAt { get; set; } = DateTime.Now;
    }
}
